/** 
* 文 件 名:RecorderCreator.java
* Copyright (C) 2007-2012:杭州希禾信息技术有限公司 版权所有 
* 创 建 人:Administrator
* 日    期:2012-4-13 下午1:28:10
* 修 改 人: 
* 日   期:
* 修改描述:
* 描   述:TODO
*/
package net.seehealth.healthpad.application.util;

import net.seehealth.healthpad.application.template.OneRecorder;
import net.seehealth.healthpad.application.template.ThreeRecorder;
import net.seehealth.healthpad.application.template.TwoRecorder;

/**
 * @className RecorderCreator
 * @author 林洪波
 * @description 数据载体创建
 * @date 2012-4-13 下午1:28:10
 */
public final class RecorderCreator {
	private RecorderCreator()
	{
		
	}
	
	/**
	  * @description:获取二元数据载体
	  * @param 
	  * @return 
	  * @throws Exception   
	  * @author TODO
	  * @date 2012-4-13 下午1:31:59
	  */
	public static  <T,B> TwoRecorder<T,B> getTwoRecorder(T t,B b)
	{
		TwoRecorder<T,B> recorder=new TwoRecorder<T,B>(t,b);
		return recorder;
	}
	
	
	/**
	  * @description:获取二元数据载体
	  * @param 
	  * @return 
	  * @throws Exception   
	  * @author TODO
	  * @date 2012-4-13 下午1:31:59
	  */
	public static  <T,B,Q> ThreeRecorder<T,B,Q> getThreeRecorder(T t,B b,Q q)
	{
		ThreeRecorder<T,B,Q> recorder=new ThreeRecorder<T,B,Q>(t,b,q);
		return recorder;
	}
	
	
	/**
	  * @description:获取一元数据载体
	  * @param 
	  * @return 
	  * @throws Exception   
	  * @author TODO
	  * @date 2012-4-13 下午1:31:59
	  */
	public static <T>  OneRecorder<T> getOneRecorder(T t)
	{
		OneRecorder<T> recorder=new OneRecorder<T>(t);
		return recorder;
	}
	
}
